package zelix.hack.hacks;


import com.mojang.authlib.GameProfile;
import net.minecraft.network.login.client.CPacketLoginStart;
import zelix.hack.Hack;
import zelix.hack.HackCategory;
import zelix.utils.Wrapper;

public class KickPlayer extends Hack {
    public static String kickname;

    public KickPlayer(){
        super("KickPlayer" , HackCategory.ANOTHER);
    }


    @Override
    public void onEnable() {
        if (kickname == null)
            return;
        Wrapper.INSTANCE.sendPacket(new CPacketLoginStart(new GameProfile(
                Wrapper.INSTANCE.player().getUUID(Wrapper.INSTANCE.player().getGameProfile()), kickname)));
        super.onEnable();
    }
}
